class CommentsController < ApplicationController
  def new
    @comment = Comment.new

    respond_to do |format|
      format.html{render :layout=>false} # new.html.erb
      format.xml  { render :xml => @comment }
    end
  end

  def create
    @comment = Comment.new(params[:comment])
    if @comment.save
      render :text=>"ok"
    else
      render :text=>"0"
    end
  end
end
